package com.hbsx.oauth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/pay")
public class PayController {

    @GetMapping("/add")
    public String add(Integer a, Integer b, HttpServletRequest request){
        return "From port:"+request.getServerPort()+",Result:"+(a+b);
    }
}
